package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-08-02
 * Time: 17:44
 */
@RestController
@Slf4j//有了这个注解,就可以直接log对象了
public class UserController3 {
    @RequestMapping("/user3")
    public void say(){
        log.info("happy");
    }
}
